import {driverWarehouseList} from "@/api/transfer";

export default {
  hasIndex: true,
  hasPage: true,
  // hasCheck: true,
  request: (params) => {
    return driverWarehouseList(params)
  },
  dataParse: (res) => {
    const resData = res.data.data || {}
    const data = {
      list: resData.rows,
      total: resData.total
    }
    return data
  },
  columns: [
    {
      prop: 'account',
      label: '用户名称',
    },
    {
      prop: 'deptName',
      label: '城市名称',
    },
    {
      prop: 'warehouses',
      label: '中转仓',
      isSlot: true,
    },
    {
      prop: 'operate',
      label: '操作',
      isSlot: true,
    }
  ]
}